package com.sys.midware.rdb.handler.op;

import java.util.List;
import java.util.Map;

/**
 * 针对RDBMS执行update语句时所需要的参数列表。
 * 
 * @author guangfeng
 * 
 * @param <E1>update属性值的类型
 * @param <E2>where语句中值的类型
 */
public class UpdateParams<E1, E2> {
	/**
	 * 要更新的属性名值对
	 */
	private Map<String, E1> updateFields;
	/**
	 * where语句
	 */
	private String whereClause;
	/**
	 * where语句中所对应的属性值
	 */
	private List<E2> whereParams;
	
	/**
	 * 表名
	 */
	private String tableName;

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public Map<String, E1> getUpdateFields() {
		return updateFields;
	}

	public void setUpdateFields(Map<String, E1> updateFields) {
		this.updateFields = updateFields;
	}

	public String getWhereClause() {
		return whereClause;
	}

	public void setWhereClause(String whereClause) {
		this.whereClause = whereClause;
	}

	public List<E2> getWhereParams() {
		return whereParams;
	}

	public void setWhereParams(List<E2> whereParams) {
		this.whereParams = whereParams;
	}
}
